package c.m.d.b.assembler;

import c.m.d.b.beans.EntityType;
import c.m.d.b.view.EntityTypeView;

public final class EntityTypeAssembler
{
    private EntityTypeAssembler()
    {
    }

    public static EntityTypeView convert(EntityType type)
    {
        EntityTypeView view = new EntityTypeView();
        view.setEntityTypeName(type.getEntityTypeName());
        view.setPropertyTypes(PropertyTypeAssembler.convert(type.getPropertyTypes()));
        return view;
    }
}
